package com.example.demo.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.demo.custom.BaseService;
import com.example.demo.entity.MoneyCompany;
import com.example.demo.entity.MoneyCompany2;
import com.example.demo.repository.MoneyCompany2Repository;

@Service
public class MoneyCompany2Service extends BaseService<MoneyCompany2, Integer>{

	@Autowired
	private MoneyCompany2Repository moneyDao;
	
	public List<MoneyCompany2> findByMoney(MoneyCompany money){
		return moneyDao.findByMoney(money);
	}

	public MoneyCompany2 findByMoney2(Integer id) {
		// TODO Auto-generated method stub
		return moneyDao.findByMoney2(id);
	}
}
